import React, { useContext } from 'react'
// 还要引入之前创建的Context
import CreateContext from '@/Pages/useContextDome/context.js'

function Child() {
    // useContext再把父组件传进去的值导出来使用
    let { name } = useContext(CreateContext)
    return (<div>这是子组件-{name}</div>)
}

export default Child;